﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;

namespace MoXAML.PowerToys.Options.ViewModel
{
    public class ViewModelBase : INotifyPropertyChanged
    {
        #region INotifyPropertyChanged Members

        public event PropertyChangedEventHandler PropertyChanged;

        protected virtual void OnChanged(string propertyName)
        {
            var prop = PropertyChanged;
            if (prop == null) return;

            prop(this, new PropertyChangedEventArgs(propertyName));
        }
        #endregion
    }
}
